package com.gnerv.battle.boot.security.controller;

import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Gnerv LiGen
 */
@RestController
@AllArgsConstructor
@RequestMapping
public class LoginController {

    @PostMapping(value = "${battle.security.loginUrl:/api/login}")
    public void login(@RequestParam(value = "username") String username,
                      @RequestParam(value = "password") String password) {
    }

    @GetMapping(value = "${battle.security.logoutUrl:/api/logout}")
    public void logout() {
    }

}
